/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.tcc.fgv.imovel.controlle;

import br.com.fgv.tcc.fgv.imovel.model.Configuracao;
import br.com.fgv.tcc.fgv.imovel.service.ConfiguracaoService;
import br.com.fgv.tcc.fgv.imovel.service.Service;
import java.io.Serializable;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.inject.Named;
import org.apache.log4j.LogManager;

/**
 *
 * @author diego
 */
@Named(value = "configuracaoM")
@SessionScoped
public class ConfiguracaoMBean extends AbstractCrudBean<Configuracao> implements Serializable {

    @EJB
    private ConfiguracaoService ejbFacade;


    public ConfiguracaoMBean() {
        logger = LogManager.getLogger(Configuracao.class.getName());
        selected = new Configuracao();
    }

    @Override
    protected Service getServiceManager() {
        return ejbFacade;

    }

   
    

    public Configuracao getSelected() {
        return selected;
    }

    public void setSelected(Configuracao selected) {
        this.selected = selected;
    }

    @Override
    public  void novaInstancia() {
        selected = new Configuracao();
    }

    

}
